<me:UIERK x:Class="WPFExcelReport.FHTERK"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                     xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                   xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"  
                     FontSize="18"
                     x:Name="TV"
                    Loaded="Window_Loaded">
    <me:UIERK.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter x:Key="trim"/>
    </me:UIERK.Resources>
    <Grid Visibility="{Binding IsFHT,ElementName=TV,Converter={StaticResource bv}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0"  Visibility="{Binding IsChkAll,ElementName=TV,Converter={StaticResource nbv}}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="110"/>
                <ColumnDefinition Width="110"/>
                <ColumnDefinition Width="110"/>
                <ColumnDefinition Width="50"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <me:KB267 LMS="01" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="0" Grid.Column="0" />
            <me:KB267 LMS="02" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="0" Grid.Column="1" />
            <me:KB267 LMS="03" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="0" Grid.Column="2" />
            <me:KB267 LMS="04" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="1" Grid.Column="0" />
            <me:KB267 LMS="05" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="1" Grid.Column="1" />
            <me:KB267 LMS="06" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="1" Grid.Column="2" />
            <me:KB267 LMS="07" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="2" Grid.Column="0" />
            <me:KB267 LMS="08" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="2" Grid.Column="1" />
            <me:KB267 LMS="09" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="2" Grid.Column="2" />
            <me:KB267 LMS="10" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="3" Grid.Column="0" />
            <me:KB267 LMS="11" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="3" Grid.Column="1" />
            <me:KB267 LMS="12" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="3" Grid.Column="2" />
            <me:KB267 LMS="13" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="4" Grid.Column="0" />
            <me:KB267 LMS="14" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="4" Grid.Column="1" />
            <me:KB267 LMS="15" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="4" Grid.Column="2" />
            <me:KB267 LMS="16" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="5" Grid.Column="0" />
            <me:KB267 LMS="17" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="5" Grid.Column="1" />
            <me:KB267 LMS="18" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="5" Grid.Column="2" />
            <me:KB267 LMS="19" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="6" Grid.Column="0" />
            <me:KB267 LMS="20" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="6" Grid.Column="1" />
            <me:KB267 LMS="21" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="6" Grid.Column="2" />
            <me:KB267 LMS="22" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="7" Grid.Column="0" />
            <me:KB267 LMS="23" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="7" Grid.Column="1" />
            <me:KB267 LMS="24" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0" Grid.Row="7" Grid.Column="2" />
        </Grid>
        <StackPanel   Grid.Row="0" Visibility="{Binding IsChkAll,ElementName=TV,Converter={StaticResource bv}}">
            <WrapPanel  >
                <me:KB267 LMS="25" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="26" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="27" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0" >
                <me:KB267 LMS="28" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="29" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="30" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
                <me:KB267 LMS="31" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="32" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="33" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
                <me:KB267 LMS="34" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="35" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="36" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
                <me:KB267 LMS="37" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="38" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="39" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
                <me:KB267 LMS="40" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="41" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="42" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
                <me:KB267 LMS="43" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="44" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="45" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
                <me:KB267 LMS="46" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="47" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="48" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
                <me:KB267 LMS="49" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="50" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
                <me:KB267 LMS="51" EKEY="{Binding EKEY,ElementName=TV}"  Margin="5,0,0,0"  />
            </WrapPanel>
        </StackPanel>
    </Grid>
</me:UIERK>
